package com.lkj;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class SpringTest {

    @Test
    public void test(){

        ApplicationContext context = new FileSystemXmlApplicationContext("web/WEB-INF/conf/spring-bean.xml");

        User user = (User) context.getBean("user");
        user.add();
    }
}
